package com.skyline.user.model;

import java.util.Date;

import com.skyline.common.util.CommonUtils;

//TODO:加注释
public class OnlineUser {
	private String sessionid;
	private Integer userid;
	private String username;
	private Date logintime;
	private Integer authority;

	public OnlineUser(String sessionid, Integer userid, String username) {
		this.sessionid = sessionid;
		this.userid = userid;
		this.username = username;
	}

	public OnlineUser(String sessionid) {
		this.sessionid = sessionid;
	}

	public String getSessionid() {
		return sessionid;
	}

	public void setSessionid(String sessionid) {
		this.sessionid = sessionid;
	}

	public int getUserid() {
		return userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Date getLogintime() {
		return CommonUtils.cloneDate(logintime);
	}

	public void setLogintime(Date logintime) {
		this.logintime = CommonUtils.cloneDate(logintime);
	}
	
	public int getAuthority() {
		return authority;
	}

	public void setAuthority(Integer authority) {
		this.authority = authority;
	}
	
	//TODO:重写toString()方法
}
